import request from './instance'
/** header */
// 热门搜索
export const SERACHHOT = (params) => request({url: '/search/hot', params});

// 热门搜索详细
export const SERACHSUGGEST = (params) => request({url: '/search/suggest', params});
// // 退出登录
export const LOGOUT = (params) => request({url: '/logout', params});

/** login */
export const LOGIN = (params) => request({url: '/login/cellphone', params});

export const GETUSERINFO = (params) => request({url: '/user/detail', params});

 /* index-index */
// 首页轮播图
export const GETBANNER = (params) => request({url: '/banner', params});
// 热门歌单分类
export const HOTLIST = (params) => request({url: '/playlist/hot', params});
// 歌单列表
export const PLAYLIST = (params) => request({url: '/top/playlist', params});
// 新碟上架
export const TOPALBUM = (params) => request({url: '/top/album', params});
// 最新MV
export const GETNEWMV = (params) => request({url: '/mv/first', params});
// 排行榜
export const TOPLIST = (params) => request({url: '/toplist', params});
// 排行榜歌单列表
export const TOPRANKLIST = (params) => request({url: '/playlist/detail', params});
// 热门电台
export const GETHOTDJ = (params) => request({url: '/dj/hot', params});
// 热门歌手
export const TOPARTISTS = (params) => request({url: '/top/artists', params});

/* play-list */
// 歌单分类
export const CATLIST = (params) => request({url: '/playlist/catlist', params});
// 歌单详情
export const PLAYLISTDETAIL = (params) => request({url: '/playlist/detail', params});
// 歌曲详情 多个id , 隔开
export const SONGDETAIL = (params) => request({url: '/song/detail', method: 'post', params});
// 歌单收藏用户
export const PLAYLISTSCOLLECT = (params) => request({url: '/playlist/subscribers', params});
// 相关歌单推荐
export const PLAYLISTRELATED = (params) => request({url: '/related/playlist', params});
// 歌单评论
export const PLAYLISTCOMMENT = (params) => request({url: '/comment/playlist', params});
// 收藏、取消歌单
export const SUBPLAYLIST = (params) => request({url: '/playlist/subscribe', params});

/* song */
// 获取相似音乐
export const SIMISONG = (params) => request({url: "/simi/song", params });
// 歌词
export const LYRICS = (params) => request({url: "/lyric", params });
// 歌曲评论
export const COMMENTSONG = (params) => request({url: "/comment/music", params});
// 获取mv评论
export const COMMENTMV = (params) => request({url: "/comment/mv", params});
// 专辑评论
export const COMMENTALBUM = (params) => request({url: "/comment/album", params});
// 获取video评论
export const COMMENTVIDEO = (params) => request({url: "/comment/video", params});
// 给评论点赞
export const COMMENTLIKE = (params) => request({url: "/comment/like", params});

/* singer */
// 歌手热门歌曲
export const ARTISTS = (params) => request({url: "/artists", params});
// 获取歌手专辑
export const ARTISTSUB = (params) => request({url: "/artist/sub", params});
// 歌手介绍
export const ARTISTDESC = (params) => request({url: "/artist/desc", params});
// 获取歌手专辑
export const ARTISTALBUM = (params) => request({url: "/artist/album", params});

/* mvlist */
// 获取 mv
export const MV = (params) => request({url: "/mv/all", params});
// 获取 mv详情
export const MVDETAIL = (params) => request({url: "/mv/detail", params});
// 获取 地址
export const MVURL = (params) => request({url: "/mv/url", params});
// 相似mv
export const SIMIMV = (params) => request({url: "/simi/mv", params});

/* album  */
// // 获取专辑内容
export const ALBUM = (params) => request({url: "/album", params});
// 获取
export const ALBUMDYNAMIC = (params) => request({url: "/album/detail/dynamic", params});
// 获取
export const ALBUMSUB = (params) => request({url: "/album/sub", params});

/* rank */
// 所有榜单内容摘要
export const TOPLISTDETAIL = (params) => request({url: "/toplist/detail", params });
// 歌单详情
export const LISTDETAIL = (params) => request({url: "/playlist/detail", params });

/* artist */
// 获取歌手列表
export const ARTISTLIST = (params) => request({url: "/artist/list", params});

/* search */
// 搜索类型
export const CLOUDSEARCH = (params) => request({url: "/cloudsearch", params});

/* video */
// 获取 video 详情
export const VIDEODETAIL = (params) => request({url: "/video/detail", params});
// 获取 video 详情
export const VIDEOURL = (params) => request({url: "/video/detail", params});
// 相似video
export const SIMIVIDEO = (params) => request({url: "/related/allvideo", params});
